package com.daxue.se;

/**
 * @author daxue0929
 * @date 2022/08/29
 **/
public class Test {

    static class Parent{
        public static int A = 1;
        static  {
            A = 2;
        }

    }

    static class Sub extends Parent{
        public static int B = A;
    }

    public static void main(String[] args){
        System.out.println(Sub.B);
    }
}
